#include "ScnsYing.c.h"

#if defined(SCNS_YING_ENABLE)&&SCNS_YING_ENABLE==1

ScnsYingStatus scnsBspYingInit(void)
{
    return SCNS_YING_STATUS_OK;
}

ScnsYingStatus scnsBspYingPostInit(void)
{
    return SCNS_YING_STATUS_OK;
}

void scnsBspYingReset(void)
{
    while(1);
/*
    IfxScuWdt_clearSafetyEndinitInline(IfxScuWdt_getSafetyWatchdogPasswordInline());
     SCU_RSTCON.B.SMU=0x1;
     IfxScuWdt_setSafetyEndinitInline(IfxScuWdt_getSafetyWatchdogPasswordInline());
     IfxSmu_unlock(&MODULE_SMU);
     IfxSmu_setAlarmConfig(&MODULE_SMU,IfxSmu_Alarm_SoftwareAlarm0,IfxSmu_AlarmConfig_scuReset);
     IfxSmu_lock(&MODULE_SMU);
     IfxSmu_cmd(&MODULE_SMU,IfxSmu_Cmd_start,0);
     IfxSmu_triggerAlarm(&MODULE_SMU,IfxSmu_Alarm_SoftwareAlarm0);
 */
}

void scnsBspYingErrorHandler(uint32 pc1,uint32 pc2,const char*file,uint32 line,const char*code)
{
    scnsYingReset();
}

#endif
